package demo3;

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s1 = scanner.next();
        String s2 = scanner.next();
        int n = s1.length(), m = s2.length();
        s1 = new StringBuffer(s1).reverse().toString();
        s2 = new StringBuffer(s2).reverse().toString();

        int[] s = new int[n+m];
        for(int i = 0; i<n; i++) {
            for(int j = 0; j<m; j++) {
                s[i+j] += (s1.charAt(i)-'0') * (s2.charAt(j)-'0');
            }
        }
        StringBuffer ret = new StringBuffer();
        int t = 0;//进制
        for(int i = 0; i<n+m; i++) {
            ret.append((char)((s[i]+t)%10+'0'));
            t = (s[i]+t)/10;
        }
        while (t!=0) {
            ret.append((char)(t%10+'0'));
            t/=10;
        }
        ret = ret.reverse();
        //处理前导0
        int i = 0;
        while (i<ret.length()-1 && ret.charAt(i) == '0') {
            i++;
        }
        System.out.println(ret.substring(i));
    }
}

// 89435729307244493990238975903222222222475555555890344444444444222222222*7999999999999999999344444444444444444444000000000000=?